package net.qhzw.vip.qiyu.param;

import lombok.Data;
import org.springframework.util.StringUtils;

@Data
public class MaintQuery {

    private Long userId;
    private String created;
    private String mobile;
    private String realName;
    private String repairUser;
    private String address;
    private Byte status;

    private String startTime;
    private String endTime;

    public String getStartTime() {
        if (!StringUtils.isEmpty(created)) {
            return created.split(",")[0];
        }
        return startTime;
    }

    public String getEndTime() {
        if (!StringUtils.isEmpty(created)) {
            return created.split(",")[1];
        }
        return endTime;
    }
}
